<div class="container front-container">
	<div class="front-main">	
		<h2 class="clearfix" style="padding-bottom: 0;">
			<!--你需要强化记忆的信息-->			
			<div class="btn-toolbar" style="margin: 0;">
				<input class="span2" type="text" name="tag" id="tag-input" value="">
				<span class="placeholder">请填写分类</span>
        		<?php 
        		$is_no_category = !$tag_list || (count($tag_list) == 1 && strlen($tag_list[0]->tagName) == 0);
        		if(!$is_no_category)
        		{
        		?>
        		<div class="btn-group" style="margin-bottom:-7px;">
				<a class="btn dropdown-toggle btn-inverse" data-toggle="dropdown" id="tag-select" href="#">选择分类
				<span class="caret"></span>
				</a>
				<ul class="dropdown-menu">
				<?php 
				if($tag_list) foreach ($tag_list as $tag)
				{
					if(strlen($tag->tagName) == 0) continue;
					$tagName = strlen($tag->tagName) == 0 ? '未分类' : $tag->tagName;
				?>
					<li><a href="#" class="tagMenu"><?php echo $tagName?></a></li>
				<?php 
				}
			    ?>
				</ul>
				</div>
				<?php 
        		}
        		?>
      </div>
			
		
			
		</h2>
		<div id="recordfragment" class="fragment">
		<?php echo form_textarea('memory', '');?>
		<span class="placeholder">填入希望记忆的内容</span>
		</div>
		
		<div id="memoryfragment" class="fragment">
		<?php echo form_textarea('description', '');?>
		<span class="placeholder">解释记忆的内容，让您在复习时可以参考</span>
		
		</div>
		<div class="fragment">
		<button class="btn btn-large btn-warning" style="width:100%" type="button" name="add" id="save-btn">保存卡片！</button>
		</div>
	</div>
	<div class="container front-action"></div>
</div>
<script>
	bdc.record.tagSelect();
	bdc.record.focusHandler()
	bdc.record.save("<?php echo site_url('record/add') ?>")
</script>
